﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MarketOnlineDAO;
using MarketOnlineDTO;

namespace MarketOnlineBUS
{
    public class TinhTrangSanPhamBUS
    {
        public Boolean ThemTinhTrangSanPham(TinhTrangSanPhamDTO tt)
        {
            return new TinhTrangSanPhamDAO().ThemTinhTrangSanPham(tt);
        }
        
        public Boolean XoaTinhTrangSanPham(TinhTrangSanPhamDTO tt)
        {
            return new TinhTrangSanPhamDAO().XoaTinhTrangSanPham(tt);
        }

        public Boolean CapNhatBangTinhTrangSanPham(TinhTrangSanPhamDTO tt)
        {
            return new TinhTrangSanPhamDAO().CapNhatBangTinhTrangSanPham(tt);
        }

        public List<TinhTrangSanPhamDTO> LayDanhSachTinhTrangSanPham()
        {
            return new TinhTrangSanPhamDAO().LayDanhSachTinhTrangSanPham();
        }
    }
}
